﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace SurvivalStrategy.PathFinding
{
    class PathMap
    {
        public Dictionary<Vector2, PathNode> Nodes { get; internal set; }

        public PathMap()
        {
            Nodes = new Dictionary<Vector2, PathNode>();
        }

        public void AddNode(Vector2 position)
        {
            if(!Nodes.ContainsKey(position))
                Nodes.Add(position, new PathNode(this, position));
        }
    }
}
